inherited OrderListFrame: TOrderListFrame
  Width = 1009
  inherited grpList: TcxGroupBox
    Caption = #1057#1087#1080#1089#1086#1082' '#1079#1072#1082#1072#1079#1086#1074
    DesignSize = (
      1009
      524)
    Width = 1009
    inherited cxLabel1: TcxLabel
      Width = 1003
    end
    inherited grdList: TcxGrid
      Width = 1003
      inherited grdListView: TcxGridDBTableView
        OnCustomDrawCell = grdListViewCustomDrawCell
        DataController.Summary.FooterSummaryItems = <
          item
            Format = '# ### ### ##0.##'
            Kind = skSum
            Column = clmnSummByOrder
          end
          item
            Format = '# ### ### ##0.##'
            Kind = skSum
            Column = clmnDolg
          end
          item
            Format = '# ### ### ##0.##'
            Kind = skSum
            Column = clmnPaym
          end
          item
            Format = '# ### ### ##0.##'
            Kind = skSum
            Column = clmnMIO
          end
          item
            Format = '# ### ### ##0.##'
            Kind = skSum
            Column = clmnPlusMinus
          end>
        OptionsView.Footer = True
        OptionsView.FooterAutoHeight = True
        object clmnColor: TcxGridDBColumn
          Caption = 'clr'
          DataBinding.FieldName = 'order_state_id'
          PropertiesClassName = 'TcxLookupComboBoxProperties'
          Properties.DropDownListStyle = lsFixedList
          Properties.DropDownSizeable = True
          Properties.KeyFieldNames = 'id'
          Properties.ListColumns = <
            item
              FieldName = 'color'
            end>
          Properties.ListOptions.GridLines = glHorizontal
          Properties.ListOptions.ShowHeader = False
          Properties.ListSource = DMdl.dsOrderState
          Visible = False
        end
        object clmnNum: TcxGridDBColumn
          Caption = #1053#1086#1084#1077#1088
          DataBinding.FieldName = 'num'
          PropertiesClassName = 'TcxTextEditProperties'
          Width = 44
        end
        object clmnRegDate: TcxGridDBColumn
          Caption = #1055#1088#1080#1085#1103#1090
          DataBinding.FieldName = 'create_date'
          PropertiesClassName = 'TcxDateEditProperties'
          Width = 83
        end
        object clmnClient: TcxGridDBColumn
          Caption = #1050#1083#1080#1077#1085#1090
          DataBinding.FieldName = 'client_id'
          PropertiesClassName = 'TcxLookupComboBoxProperties'
          Properties.ClearKey = 46
          Properties.DropDownListStyle = lsFixedList
          Properties.DropDownSizeable = True
          Properties.KeyFieldNames = 'id'
          Properties.ListColumns = <
            item
              Width = 60
              FieldName = 'code'
            end
            item
              Width = 200
              FieldName = 'name_rus'
            end>
          Properties.ListFieldIndex = 1
          Properties.ListOptions.ShowHeader = False
          Properties.ListSource = DMdl.dsClient
          Width = 168
        end
        object clmnTitle: TcxGridDBColumn
          Caption = #1050#1088#1072#1090#1082#1086#1077' '#1086#1087#1080#1089#1072#1085#1080#1077
          DataBinding.FieldName = 'title'
          PropertiesClassName = 'TcxTextEditProperties'
          Width = 223
        end
        object grdListViewdocstr: TcxGridDBColumn
          Caption = #1044#1086#1082#1091#1084#1077#1085#1090#1099
          DataBinding.FieldName = 'docstr'
          Options.Editing = False
          Width = 200
        end
        object clmnSummByOrder: TcxGridDBColumn
          Caption = #1057#1091#1084#1084#1072' '#1087#1086' '#1079#1072#1082#1072#1079#1091
          DataBinding.FieldName = 'summ_by_order'
          PropertiesClassName = 'TcxCalcEditProperties'
          Properties.DisplayFormat = '# ### ### ##0.##'
          Properties.ReadOnly = True
          Options.Editing = False
          Width = 100
        end
        object clmnPaym: TcxGridDBColumn
          Caption = #1054#1087#1083#1072#1095#1077#1085#1086
          DataBinding.FieldName = 'summ_by_paym'
          PropertiesClassName = 'TcxCalcEditProperties'
          Properties.DisplayFormat = '# ### ### ##0.##'
          Properties.ReadOnly = True
          Options.Editing = False
          Width = 88
        end
        object clmnDolg: TcxGridDBColumn
          Caption = #1044#1086#1083#1075
          DataBinding.FieldName = 'dolg'
          PropertiesClassName = 'TcxCalcEditProperties'
          Properties.DisplayFormat = '# ### ### ##0.##'
          Options.Editing = False
          Styles.Footer = DMdl.cxStyle1
          Width = 86
        end
        object clmnMIO: TcxGridDBColumn
          Caption = #1044#1086#1087'. '#1088#1072#1089#1093'/'#1076#1086#1093
          DataBinding.FieldName = 'summ_by_mio'
          PropertiesClassName = 'TcxCalcEditProperties'
          Properties.DisplayFormat = '# ### ### ##0.##'
          Properties.ReadOnly = True
          Options.Editing = False
          Width = 90
        end
        object clmnPlusMinus: TcxGridDBColumn
          Caption = '+/-'
          DataBinding.FieldName = 'plus_minus'
          PropertiesClassName = 'TcxCalcEditProperties'
          Properties.DisplayFormat = '# ### ### ##0.##'
          Properties.ReadOnly = True
          Options.Editing = False
          Width = 81
        end
        object clmnReqDate: TcxGridDBColumn
          Caption = #1050' '#1076#1072#1090#1077
          DataBinding.FieldName = 'request_date'
          PropertiesClassName = 'TcxDateEditProperties'
          Width = 81
        end
        object clmnState: TcxGridDBColumn
          Caption = #1057#1086#1089#1090#1086#1103#1085#1080#1077
          DataBinding.FieldName = 'order_state_id'
          PropertiesClassName = 'TcxLookupComboBoxProperties'
          Properties.DropDownListStyle = lsFixedList
          Properties.DropDownSizeable = True
          Properties.KeyFieldNames = 'id'
          Properties.ListColumns = <
            item
              FieldName = 'title'
            end>
          Properties.ListOptions.GridLines = glHorizontal
          Properties.ListOptions.ShowHeader = False
          Properties.ListSource = DMdl.dsOrderState
          Width = 99
        end
      end
    end
    object lupClient: TcxDBLookupComboBox
      Left = 701
      Top = 21
      Anchors = [akTop, akRight]
      DataBinding.DataField = 'id'
      DataBinding.DataSource = dsFilter
      Properties.ClearKey = 46
      Properties.DropDownListStyle = lsFixedList
      Properties.DropDownRows = 20
      Properties.DropDownSizeable = True
      Properties.KeyFieldNames = 'id'
      Properties.ListColumns = <
        item
          Width = 80
          FieldName = 'code'
        end
        item
          Width = 150
          FieldName = 'name_rus'
        end>
      Properties.ListFieldIndex = 1
      Properties.ListOptions.ShowHeader = False
      Properties.ListSource = DMdl.dsClient
      Properties.OnChange = lupClientPropertiesChange
      Properties.OnEditValueChanged = lupClientPropertiesChange
      TabOrder = 7
      Width = 297
    end
    object cxLabel2: TcxLabel
      Left = 653
      Top = 24
      Anchors = [akTop, akRight]
      Caption = #1050#1083#1080#1077#1085#1090':'
      Transparent = True
    end
    object AdvGlowButton2: TAdvGlowButton
      Left = 216
      Top = 15
      Width = 35
      Height = 29
      Action = actOrderCopy
      DisabledPicture.Data = {
        89504E470D0A1A0A0000000D4948445200000018000000180806000000E0773D
        F80000019F49444154789CED954D4EC25014853F282AFE474898C800B6E21ACA
        C41DE8822031E9D451D7E116604852266F005154E8CFA3CF01F7C56A4BF127C4
        8927B96972DF7DE7DC73DAA4F08FBF4665DBC0743AED033725238366B379FBE3
        0D9452A60C4A29A394EAFF58A0945D1004810982A0502417D1B6481A8D46617F
        3C1E030CBADD6E795C5F89641386C3A1F9CC57FDDC88E3B8748156ABC5643229
        3C0BC330D7CB0968AD4B0500DAEDB68DE4FB02454345E8743A8C46A3DD0914CD
        EE5C208AA2DD0A6C75E0BA6EE537024992E4666A5972C029B2B90976D6F33C00
        D234BD735DD7015200DFF74D2D4B0E1C7CD741AFD7BB029EA4E6401D8801FDC1
        811528B2B909327B099C0007C251055E0103682B509543673E9FDF7B9E77FD15
        81D96CF6001C0109700C2C80501C2480AE64E2D9070E8153E01CB890E7995CAE
        8B63FB6168217B651DCD4CEA11780196BEEF87D68161FD6262D9A22ABD1858CA
        967559C2913B2B115800CF22B2E43DFF14DEDF8191A6915A015166BBBA64BC97
        71B012B2488817F20C259E9CC04A9AA98859813DA99A6C6FFF21A9DCD142684B
        6778780348D54F4ACAD09D640000000049454E44AE426082}
      HotPicture.Data = {
        89504E470D0A1A0A0000000D4948445200000018000000180806000000E0773D
        F80000041749444154789C8D95CF6F146518C73FEFBC33DD9D6DA152C06EA045
        118D69C281783298207020844343E2C9E0C17B130F9E4C3C793026FEE06FE01F
        20244BA20937A31263A81A0C091CB0680D2EECD27677DBDD99797F3C1E66763B
        B8ADF54D9EBC33F3BEF3FD3EDFEF3BF33C8AFF1872E192028641690690D22CEA
        D6D7C20E43EDF4B0041C0021A08B28BF2380072CE08A18230A77495E156B1560
        12A8011305A12A811B6000F481043072E1922F933CA7A094B92E400F00B3C061
        601F1095082CB005AC01AD62EE0119302251BB5852055E008EDD3877E693F6C1
        99B3BB2865B6D5BEBDF8EDF75F002B4013E896498616FDDB9269A00EBCD69CDE
        7FF6FDF7DEDB0D9F6BD7AE9D6EBCF5E6C78B3FFCF879F1C89794882AB21F663D
        53001F01E68113D9CD1B1F38E768369B63E0F57A9D66B349A3D160AEFDECCE3B
        3F2D7F0ADC2F946C0156C9854B01F901E6969C7FFBB3F6CC81F3BB653C3737C7
        C2C2426ECFEC2CABABAB4451C4F5EBD739BABE71FBDD3BBF7C043C04D681342C
        D953030E37F7EF3BBF872578EF3979F22400F3F3F3002C2D2D71F5EAD5D3850B
        8FC9CF420D09862AF665590640FCE4D918F860F620172F5EA4D168E0BDE7D4A9
        53A3B543870E91240945A25181A982627D48121963009020180B00630C8B8B8B
        3C78F080E5E565945228957FED05C1089CE28232499AA6F94DA0C6626849BD5E
        676969897BF7EEA1B5466B5D26289796F13FB9D804E1F84F1E7736B7ED9A9E22
        499251F6CFBD5B1ABB1288DAB14C8DED0D826D130AF59EED42B84D9079AFB452
        6A48A02A13FF8B600705A64C122E773BEA445C530241A8543892190463803B11
        4C4D4D8DEEB32CC38A6C5AF1A61A680FE4A5E2D75E379CD4BA72309AA80C0F19
        BD37419AA668ADB97CF93200AF38FFDDEA20ED6E39974D47A19BAFC612DE6C3D
        D5D361181D8F6B113052207B2A109224E1EE9973DF7C68EDA34D671FF59D5BB9
        655DFFEF2C759BD6065FBEBE20E172B7131C8F631D2AA522A54C9665B997D5EA
        9E0AB22CE3EE66AFFD7BBFDF6E66E95AD7DADE86B1B6E34CB0668CFEEA8F1509
        FF1C0C54007E32D0493508D65FEC6DFE7CE5CA9537F6440766B7B61EFED6EBB5
        EEF7B7D61E2749AF636D9278678D084E24005073956AFC721C4FBD14C733C7AA
        F191D989CAB1A9501F0D959AF1C2A4115F315E22876804E5118C17D773B6FF34
        4BD7560683D66A923C69A6692BF16EDD896C64225DF24ED709FF4A1337A975A2
        95EA582FD2B536A906415B60BF111FA7DEC7C6CB8415093DA2BD084EF003EFB2
        0D637A4FB36C63DD9A4EE25D67E07D97BC7D1AF21E4D0838AD54DACA32E93B67
        D6AD19442A680B3299783F61BCAF5A912827403B110049BD3389F769D7DA41EA
        7DDFE71927404ADE6C0C6CD70D0504AFD66ABA16E85029A281F361A0888C97D0
        880FBDA00594202AF3224AE18DF736F5DE0CBC37E43D7A98F928FE011D454137
        341DF64E0000000049454E44AE426082}
      Notes.Strings = (
        '1'
        ''
        '2'
        '3'
        '4'
        '4')
      NotesFont.Charset = DEFAULT_CHARSET
      NotesFont.Color = clWindowText
      NotesFont.Height = -11
      NotesFont.Name = 'Tahoma'
      NotesFont.Style = []
      OfficeHint.Notes.Strings = (
        #1050#1086#1087#1080#1088#1086#1074#1072#1090#1100' '#1079#1072#1082#1072#1079)
      Picture.Data = {
        89504E470D0A1A0A0000000D4948445200000018000000180806000000E0773D
        F80000020E49444154789CED923D8EDA5014853FFB0D6332218922216129B000
        3AD6908A0A51871E694243C30E58839158403A1A8B35A4A3A4A043A271815012
        328C6DB09D22F70183637ED2A4C995AEFC7CFFCE3DE73DF86FFFDA8C4B05C3E1
        D0011ECF940CDAEDF6E7BFDEC0719C64B3D964BAE33889E3384E56FF45064110
        245114E1795E2A67DB369EE7E1BA2EC0A0DBEDA698A4002E49522E97A956AB00
        944A25168B05B95C8ED1680430E8F57AE7E5BA4692F1789CCCE7F354AEDFEF27
        A7F3EE4E03611802644A52AFD7715D97388EA9D56AFB5CB158C4F7FD548F791A
        D86EB700188691729D6F341ACC66332693C98BDC550041109C05A8542AD8B64D
        A7D3613A9DA294422995099092481799660A9BE572B93F6B4934F0CD00C78D59
        E6FBFE8B4534FBAB0034ED4B00B732306E65502814F6FFFA0566011880D234FF
        7407A71604014A299ACD2600711C0F0105C4529268004312D6AD0C2CCBFA087C
        17FF01E48110D89D3250801586618A7A9689241F800260C90C1378021260A701
        4C49AAF57AFDA5D56A7DBA381D58AD565F8107600BBC0636802F0CB6C0CEE020
        CF3DF00A7803BC03DECBF7AD34E785B1BE9C9D0C7B126956E2DF809FC033E06B
        0609BF2F26942D4C898552F82000F7B20C4024001B602D20CF1CF48FE1700789
        0413F108088EB6CB8BC6B92306910C0B64F0466F2DF2C4883CC7CF45CBA504FC
        4E86E6E4AC8EEA6301D9C940ED7AFB18887F01CA4632DFCE63614F0000000049
        454E44AE426082}
      Rounded = False
      ShowCaption = False
      Transparent = True
      ParentShowHint = False
      ShowHint = True
      TabOrder = 9
      Appearance.BorderColorHot = 8355711
      Appearance.BorderColorDown = 3487029
      Appearance.ColorChecked = 14671839
      Appearance.ColorCheckedTo = 16367008
      Appearance.ColorDisabled = 15921906
      Appearance.ColorDisabledTo = 15921906
      Appearance.ColorDown = 14671839
      Appearance.ColorDownTo = 13421772
      Appearance.ColorHot = 15395562
      Appearance.ColorHotTo = 14013909
      Appearance.ColorMirrorHot = 13750737
      Appearance.ColorMirrorHotTo = 16382457
      Appearance.ColorMirrorDown = 13158600
      Appearance.ColorMirrorDownTo = 15658734
      Appearance.ColorMirrorChecked = 16102556
      Appearance.ColorMirrorCheckedTo = 16768988
      Appearance.ColorMirrorDisabled = 11974326
      Appearance.ColorMirrorDisabledTo = 15921906
    end
    object AdvGlowButton3: TAdvGlowButton
      Left = 251
      Top = 15
      Width = 35
      Height = 29
      Action = actEnterPayment
      DisabledPicture.Data = {
        89504E470D0A1A0A0000000D4948445200000018000000180806000000E0773D
        F8000002A549444154789CED95414854511486BF3BE3A8632ABAA845411645C1
        04812B0517AEA445B86ADDCE5DE028086E82CB834014D1793A130342AD5A47C8
        404562AF444C42C6243789E822DC28E8C0F874C699D3E63E7999F3940ADA74E0
        70EE79F7DCFF3FFFE15E1EFCB77F6DEA3C45A3A3A3DDD168F491EBBA8FA3D1E8
        13D77553030303D37FAD8B542AF55A44C41FCF7BB62A68737878F8567D7DFD48
        B158AC0628168B355E4C26936FF2F9FCD3C1C1C157BFD5F5D0D0D0EDA9A9A90F
        22F24D2A5832997C7B164EA8D2464343C3484F4FCF65E0E6DADADA0C806DDB8E
        17272727DFE572B9F459041547542A95A2C00D804C261389C7E3E472B99740A7
        52EAA8B7B7B7EB2CF040054AA943601DA0ABABAB04D0D8D8F800404422131313
        D39665C5CE4372AA69AD63E9747A5E44D64F9B7FB95C5E4FA7D3F35AEB3F22B9
        63DB762691487C1411191F1F9F1311C966B3EF0DCFBA6DDB99208C8A2302B02C
        EB6B3C1EBF0F94007677773300B3B3B31153725D44EA823002DF81D6FA617373
        738F8844009A9A9ABA013A3A3A4A0085426143297510841168DE684EB3FDFDFD
        8D542AB5A8B5BE1B84110EDA6C6B6B53D96CF6E2C2C2C2567B7BFB954422B168
        E2A7A5A5A5EF3B3B3BBD96657D09C2A83822ADB5029EF7F7F73F1B1B1BFB0C20
        225E7D555F5FDFBD20E020050A08398E13761C2702D4B6B6B65E5D5E5EBEB4B5
        B5F5626565E5DAF6F6F6CCDCDC9CC3CF974469AD95E338BF809DCCC34004A801
        A2C005136B0C601928002E9007F68143A088B96D807880553E604F5135500BD4
        010DC6EB7C0425E0C03471DAFFA4E44F8E25B6B4B4840D4195F188C943BE8345
        D37DC1AC8FCCF7B2E9DAEBFC9838EC257B7B7BCAAC95AF400C40C174ED9A91E4
        8DBBBEF11C757676B2B9B9E9273A065200B1582CB4BABA1A3AA1C453E629F148
        8F7CEEA928FB6A00F80113A3682999E9EC500000000049454E44AE426082}
      HotPicture.Data = {
        89504E470D0A1A0A0000000D4948445200000018000000180806000000E0773D
        F80000043849444154789C8D956D88545518C77FE79CB9333BB3B3BBBABABBE2
        4B6B4E9A60415848666F1848415A204A89E9F6A5D04CA4F463D187BE079981A4
        5259540B91A05412A9D12B424564AB598BA4B26FBEECEEEC9DBB3BF79E973ECC
        1D9D9D99552F1CCEBD97F3FCFFE77FFECFF31CC12D3C1D2E27AAFF0D8A5E772B
        B1358175800520ABD63AC002EE66445312C4E01248001EA0E26F0768208A677B
        2392BA0415E049200D64E33911838E0305208889CC5424350455E059A0B5634F
        F3D3B2286E0B1687E7336792B7D994BD30F8D2D821E00AE003E1544AE44DC0DB
        804E27DCDD87371FDAEA0DC9870F6F3EB4D50996007381D60A65754F23514791
        0232C0CCECB1D48A649F5A5E34C579918D08C3684E6423C2627176FBDBD94D58
        7A8676F81F03454077B89CA8563189B5C3E514D000B4351D4D3D327BA86DDDAE
        E53B1F5C9CBDB345DB8884F428CF006BDF5BB767F035FF2D6088922F355EC80A
        F0724A7A4063B2572DDDB9EC9515F3BC392DBBFFDE3D2284E4F123ABCF0B2179
        E2D335279FEA5EFB8599E6AEC6315366A3ACFA2E7BE039DFB5DE91CD4DD3D670
        E4EC51DF188D6C94D6188DCA4A73657BF0FDE5970B3F71BD46EA925413940B48
        DBA4CDFF35DC336AAD61D58295CDDA6AF4A8F1B4D544BECE347F907C287D2CB1
        0468045294BCAB21A9E7411A68CB1C4E3C36EBE28C67B6ADD8B26C61E3C2266D
        CDF52021F8D7FF67ECDD9FF79E1C9873F9B3608DF996D88741D16B2A31EB29D0
        4010ACD6BFF5E52E1F7DFD97378FAFFF7CE39F09A978F6AB4DFD09A9D8DFBB3F
        3F3F3DBF69DBF22DF725CEC87B63151E20AAFB563D024329ED0A13AB4C8FFF82
        FE41792AD4D6A0D2CA6A6BF8A6E7BB2032110BB2B916C65C6B0C5EDDAF80DA3A
        28933880EC1B6A258EBB22A2A4739668442BE72C8F2E7AA0D158C3E9E1D3799B
        74A394DA852DC7DD8CE0FA3364677DB8E3FD55910909C280834FEE9B158401CF
        2FE86A3A3B76D6DF7B7CDFEFD142FB2BA5BEA4A9D35DA7526080D0A46CDF8677
        9EFB5A0BD37EF0C5034B371CEC3AF7D1C603B76FD8D7F54762BA3A67178913D1
        7AF12390A7D48F6EAC6050F4BA96EE0EBCFB1B0CD64DF8BBC427C21339F5AADE
        2E85C40C1B5F0A891DD2856087E876BE3DC7293762476D9108139E18AFD96DB5
        2922B5AE518A9468903355B3EC50EDA255757A5FBA2E11D06997880BE294ED74
        29FAC27B4CB7B968FEB3FD7AC00E98ABF692F16DBF0963F5E593984470AD8A45
        B3C88816355DCE94ED72869A279AE55CD120DA10645CE89CCB5BDF5E3297ECB0
        ED73C376C00576909091D88B624CE22A8FA85CEA0920E5F22EEDC675C6E565C6
        F69BA4480B81121A498871D645442EB08E71A7DC845318BC3856C5C39655547A
        20278D08E70A56BB710A24C48850684AF96E9D661CED46B18C6026EDBA26552B
        2F8A6B7D089800241A8022C6E55DA98DAB785D18031780314AB7DA441C3B8944
        54CD3206295FF4294AB79B178FF23A4BA9B8C278F7E5775371FE0EE07F0A400D
        5F275FA1F80000000049454E44AE426082}
      Notes.Strings = (
        '1'
        ''
        '2'
        '3'
        '4'
        '4')
      NotesFont.Charset = DEFAULT_CHARSET
      NotesFont.Color = clWindowText
      NotesFont.Height = -11
      NotesFont.Name = 'Tahoma'
      NotesFont.Style = []
      OfficeHint.Notes.Strings = (
        #1042#1085#1077#1089#1090#1080' '#1086#1087#1083#1072#1090#1091)
      Picture.Data = {
        89504E470D0A1A0A0000000D4948445200000018000000180806000000E0773D
        F80000030949444154789CED544D481B41187DD335DA348931A41E5430949616
        522F3D5B1015E9A1B8080511A426929C2C88DE7BF0E0C97B4B6FAB82604FA52B
        815A5AB42AD48A042C54586AA425D448AA928D4D373F333BBD4CD245C9464AA1
        970E0C6F876FE6FD7CB3BBC0FFF1AF07B9C8A6E1E1E17EA7D3F9C8308CC74EA7
        73DA308C270B0B0B4B7FCD45341A7D95CFE7B9152F7AB6CEAE38343474D3ED76
        CF944AA57A4A294AA55243192391C8722E977BBAB8B8F8F28F5C0F0E0EDE1A1B
        1B5B4B24129F755DE7272727DC8ABAAEF34824F2BA16CFA56A058FC733333939
        D9EA72B96E2C2F2FBF2584607C7CFC5D19272626DE64B3D967B504AAB68831E6
        F4FBFDD70DC3402C1673F4F6F6229BCDBE304DB38B10421545E9AB456E9B8010
        52383838D8374D137D7D7D8C528AC6C6C607945270CE1DA3A3A34B030303C15A
        0252B5427B7BFBCEEEEE6E6F3018A4C160F04EB1584477777780528A9E9E9E40
        47478743D3B49EB6B6B6F79AA67DBF489A734396E5DBE17038160A85D693C924
        1F1919D94826935C5194D54422C1E3F1F87E381C8ED971546D1100A8AAFA6976
        76F63E00C6184326938931C6B0B2B2E2608CC1EFF75FE39C5FB1E3B0FD0E6459
        7EE8F3F9A29C7307E71C4D4D4DFD9C7374767632D334914AA5BE1042F2761CB6
        BF8A5028B43E35357597520AC6182449AA603A9DFEAA284A3A9D4E475555FD58
        8DA3EA2503402010209B9B9BCD6B6B6BA9AEAEAEB6E9E9E92D811FE2F1F8B7E3
        E3E3713B72C0E60E6459260094F9F9F94ECEB9440801E7BC8E10020075737373
        F75455DDB123AF96800090344DABD334AD0180ABA5A525B0B5B5D57C7878F87C
        7B7BBBFDE8E868756F6F6FE3AC41599689A669E7C8CEAE1D001A00B8007800F8
        00348AB5048002300064016404E600E4458D8B09E0F75B442CE49701B8017801
        F8015C15CF2EE19802F821F6953B60252D591D57227ABD5E4908D68BD92050B2
        1C2C0AF786705C1482E619914A67A4F2A250281021482CD3142479E1BADC16DD
        D29E9F000A008AADADAD383D3D352D421525028078BD5E49D7F54BA255E5240E
        91AC9CC414AE8B9654A52A49F00B444574CC32013A0B0000000049454E44AE42
        6082}
      Rounded = False
      ShowCaption = False
      Transparent = True
      ParentShowHint = False
      ShowHint = True
      TabOrder = 10
      Appearance.BorderColorHot = 8355711
      Appearance.BorderColorDown = 3487029
      Appearance.ColorChecked = 14671839
      Appearance.ColorCheckedTo = 16367008
      Appearance.ColorDisabled = 15921906
      Appearance.ColorDisabledTo = 15921906
      Appearance.ColorDown = 14671839
      Appearance.ColorDownTo = 13421772
      Appearance.ColorHot = 15395562
      Appearance.ColorHotTo = 14013909
      Appearance.ColorMirrorHot = 13750737
      Appearance.ColorMirrorHotTo = 16382457
      Appearance.ColorMirrorDown = 13158600
      Appearance.ColorMirrorDownTo = 15658734
      Appearance.ColorMirrorChecked = 16102556
      Appearance.ColorMirrorCheckedTo = 16768988
      Appearance.ColorMirrorDisabled = 11974326
      Appearance.ColorMirrorDisabledTo = 15921906
    end
  end
  inherited tblList: TUniTable
    TableName = 'orders'
    AfterInsert = tblListAfterInsert
  end
  inherited dsList: TUniDataSource
    DataSet = quList
  end
  inherited ActionList: TActionList
    inherited actDel: TAction
      OnExecute = actDelExecute
    end
    object actOrderCopy: TAction
      Caption = #1050#1086#1087#1080#1088#1086#1074#1072#1090#1100' '#1079#1072#1082#1072#1079
      Hint = #1050#1086#1087#1080#1088#1086#1074#1072#1090#1100' '#1079#1072#1082#1072#1079
      OnExecute = actOrderCopyExecute
      OnUpdate = actOrderCopyUpdate
    end
    object actEnterPayment: TAction
      Caption = #1042#1085#1077#1089#1090#1080' '#1086#1087#1083#1072#1090#1091
      Hint = #1042#1085#1077#1089#1090#1080' '#1086#1087#1083#1072#1090#1091
      OnExecute = actEnterPaymentExecute
    end
  end
  inherited quList: TUniQuery
    SQL.Strings = (
      'select o.*, '
      'GetOrderDocsString(o.id) as docstr,'
      
        '(select sum(ol.summ_full) from order_list ol where ol.order_id =' +
        ' o.id) as summ_by_order,'
      
        '(select sum(p.summ) from payments p, acts a where p.act_id = a.i' +
        'd and a.order_id = o.id and p.parent_id is not null) as summ_by_' +
        'paym,'
      
        '(select sum(mio.summ * miot.pr) from money_in_out mio, money_in_' +
        'out_type miot where mio.order_id = o.id and mio.io_type_id = mio' +
        't.id) as summ_by_mio'
      'from orders o order by o.create_date desc')
    AfterInsert = tblListAfterInsert
    AfterPost = quListAfterPost
    OnCalcFields = quListCalcFields
    object quListid: TIntegerField
      FieldName = 'id'
    end
    object quListtitle: TStringField
      FieldName = 'title'
      Size = 255
    end
    object quListorder_state_id: TIntegerField
      FieldName = 'order_state_id'
      Required = True
    end
    object quListcreate_date: TDateTimeField
      FieldName = 'create_date'
      Required = True
    end
    object quListrequest_date: TDateTimeField
      FieldName = 'request_date'
    end
    object quListclient_id: TIntegerField
      FieldName = 'client_id'
    end
    object quListpayer_id: TIntegerField
      FieldName = 'payer_id'
    end
    object quListdescr: TMemoField
      FieldName = 'descr'
      BlobType = ftMemo
    end
    object quListempl_id: TIntegerField
      FieldName = 'empl_id'
    end
    object quListplan_paym_date: TDateField
      FieldName = 'plan_paym_date'
    end
    object quListsumm_by_order: TFloatField
      FieldName = 'summ_by_order'
      ReadOnly = True
    end
    object quListsumm_by_paym: TFloatField
      FieldName = 'summ_by_paym'
      ReadOnly = True
    end
    object quListsumm_by_mio: TFloatField
      FieldName = 'summ_by_mio'
      ReadOnly = True
    end
    object quListplus_minus: TFloatField
      FieldKind = fkCalculated
      FieldName = 'plus_minus'
      Calculated = True
    end
    object quListdolg: TFloatField
      FieldKind = fkCalculated
      FieldName = 'dolg'
      Calculated = True
    end
    object quListnum: TIntegerField
      FieldName = 'num'
    end
    object quListdocstr: TStringField
      FieldName = 'docstr'
      Size = 1000
    end
  end
  object memFilter: TdxMemData
    Indexes = <>
    SortOptions = []
    Left = 616
    Top = 88
    object memFilterid: TIntegerField
      FieldName = 'id'
    end
  end
  object dsFilter: TDataSource
    DataSet = memFilter
    Left = 632
    Top = 104
  end
end
